import 'package:duuchin/http/http.dart';

class SongService {
  static const String rootPath = '/api/song'; // 公共路径
  static const String songPath = '$rootPath/list'; // 列表信息路径
  static const String infPath = '$rootPath/info'; // 详情信息路径

  static Future getSong({int page = 1, int limit = 10}) async {
    final Map parameter = {
      'page': page,
      'limit': limit,
    };
    final response = await Http.post(songPath, data: parameter);
    Map<String, dynamic> result = response['page'];

    return result;
  }
}
